package com.hand.test02.feign;

import com.hand.test02.domain.Attach;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 马旭阳
 * @date2019/7/26
 */
@FeignClient(name="app-order")
public interface AttachServiceFeign {
    @PostMapping("/attach/id")
    Attach queryAttachById(Integer id);
    @PostMapping("/attach")
    void insertAttach(@Param("attach") Attach attach);
    @PutMapping("/attach/height")
    void updateAttach(@Param("attach") Attach attach);
    @DeleteMapping("/attach/aId")
    void deleteAttach(@Param("id") Integer id);
}
